<div class="pageHeader">
  <form id="pagerForm" onsubmit="return divSearch(this, 'jbsxBox_cus');" action="#{$smarty.const.ACT}#/CstChance/cst_chance_show_box/" method="post">
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="numPerPage" value="#{$numPerPage}#" />
    <input type="hidden" name="orderField" value="${param.orderField}" />
    <input type="hidden" name="cusID" value="#{$cusID}#" />
    <div class="searchBar">
      <table class="searchContent">
        <tr>
          <td><select class="combox" name="searchKeyword">
              <option value="title">机会主题</option>
              <option value="intro">客户需求</option>
              <option value="chance">可能性</option>
              <option value="money">预计金额</option>
            </select></td>
          <td><input type="text" name="searchValue" /></td>
          <td> 建档时间：
            <input type="text" class="date" name="bdt" size="15" readonly />
            -
            <input type="text" class="date" name="edt" size="15" readonly /></td>
          <td><ul>
              <li>
                <div class="buttonActive">
                  <div class="buttonContent">
                    <button type="submit">检索</button>
                  </div>
                </div>
              </li>
            </ul></td>
        </tr>
      </table>
    </div>
  </form>
</div>
<div class="pageContent">
  <div class="panelBar">
    <ul class="toolBar">
      <li><a target="dialog" class="add" href="#{$smarty.const.ACT}#/CstChance/cst_chance_add/cusID/#{$cusID}#/" rel="cst_chance_add" title="销售机会添加" width="850" height="450"><span>添加</span></a></li>
      <li class="line">line</li>
      <li><a class="delete"  href="#{$smarty.const.ACT}#/CstChance/cst_chance_del/" postType="string" title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" ><span>删除</span></a></li>
      <li class="line">line</li>
      <li><a class="edit" href="#{$smarty.const.ACT}#/CstChance/cst_chance_modify/id/{sid_user}/" target="dialog" rel="cst_chance_modify"  title="销售机会修改"><span>修改</span></a></li>
      <li class="line">line</li>
    </ul>
  </div>
  <table class="table" width="100%" layoutH="148" rel="jbsxBox_cus">
    <thead>
      <tr>
        <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
        <th width="150">机会主题</th>
        <th width="80">联系人</th>
        <th width="140">发现时间</th>
        <th width="150">客户需求</th>
        <th width="140">预计签单时间</th>
        <th width="60">预计金额</th>
        <th width="60">可能性</th>
        <th width="80">当前阶段</th>
        <th width="80">状态</th>
        <th width="80">建档人员</th>
        <th width="140">建档时间</th>
      </tr>
    </thead>
    <tbody>
    
    #{foreach from=$list key=k item=v}#
    <tr target="sid_user" rel="#{$v.id}#">
      <td><input name="ids" value="#{$v.id}#" type="checkbox"></td>
      <td>#{$v.title}#</td>
      <td>#{$linkman[$v.linkmanID]}#</td>
      <td>#{$v.finddt}#</td>
      <td>#{$v.intro}#</td>
      <td>#{$v.billdt}#</td>
      <td>#{$v.money}#</td>
      <td>#{$v.chance}#%</td>
      <td>#{$dict[$v.salestage]}#</td>
      <td>#{$status[$v.status]}#</td>
      <td>#{$users[$v.create_userID]}#</td>
      <td>#{$v.adt}#</td>
    </tr>
    #{/foreach}#
      </tbody>
    
  </table>
  <div class="panelBar">
    <div class="pages"> <span>显示</span>
      <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value},'jbsxBox_cus')">
        <option value="20" #{if $numPerPage eq '20'}# selected="selected" #{/if}#>20</option>
        <option value="50" #{if $numPerPage eq '50'}# selected="selected" #{/if}#>50</option>
        <option value="100" #{if $numPerPage eq '100'}# selected="selected" #{/if}#>100</option>
        <option value="200" #{if $numPerPage eq '200'}# selected="selected" #{/if}#>200</option>
        <option value="500" #{if $numPerPage eq '500'}# selected="selected" #{/if}#>500</option>
      </select>
      <span>条，共#{$totalCount}#条</span> </div>
    <div class="pagination" targetType="dialog" rel="jbsxBox_cus" totalCount="#{$totalCount}#" numPerPage="#{$numPerPage}#" pageNumShown="10" currentPage="#{$currentPage}#"></div>
  </div>
</div>
